package com.innerclass.member;

/**
 * 成员内部类：
 */
public class MemberClass {

    int age = 10 ;
    private String name = "沉默王二";
    static double money = 1;

    public void Member1() {
        new InnerMember().print();
    }


    public static void main(String[] args) {
        MemberClass memberClass = new MemberClass();
        InnerMember innerMember = memberClass.new InnerMember();
        innerMember.print();

    }

    class InnerMember{
        int age =5;
        public void print(){
            System.out.println(name);
            System.out.println(money);
        }

    }

}

